home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
serial
/
strcmpu.c
< prev
next >
Wrap
Text File
|
1995-03-19
|
475b
|
19 lines
/************************************************************************/
int strcmpu( s, t )
/* returns: -1 is s < t
0 if s = t
1 if s > t
without regard to case */
char s[], t [] ;
{
int i;
i = 0 ;
while( toupper(s[i]) == toupper(t[i]) ) {
if( s[i++] == '\0' ) {
return( 0 ) ;
}
}
return( toupper(s[i]) - toupper(t[i]) ) ;
}
/************************************************************************/